package officeboost.domain.equip_venue;

import officeboost.domain.VenueService;
import officeboost.domain.EquipmentService;
import org.junit.Test;

public class ReserveTest {

    @Test
    public void test() {
	EquipmentService eManager = new EquipmentService();
	VenueService cManager = new VenueService();


	Equipment chair1 = new Equipment();
	Equipment desk1 = new Equipment();
//	chair1.setInfo("chair1", "Available", "sit");
//	desk1.setInfo("desk1", "Available", "place");

	Venue court1 = new Venue();
	Venue court2 = new Venue();
//	court1.setInfo("court1", "Available", "football");
//	court2.setInfo("court2", "Available", "basketball");

//		eManager.reserve(chair1, 2000, 1, 2, 8, 0, 2000, 1, 2, 18, 0);
//		if(eManager.reserve(chair1, 2000, 1, 2, 8, 0, 2000, 1, 2, 18, 0))
//		{
//			
//		}


//		while(true)
//		{
//			System.out.println("You are a(1 for equipment manager, 2 for court manager):");
//			Scanner in = new Scanner(System.in);
//			int dataIn = in.nextInt();
//			int eId;
//			int cId;
//			if(dataIn == 1)
//			{		
//				System.out.println("Hello, equipment manager, what will you do for chair1(1 for reserve,2 for release,3 for cancel reserve, 4 for use):");
//				in = new Scanner(System.in);
//				dataIn = in.nextInt();
//				switch(dataIn)
//				{
//					case 1:
//						eManager.reserve(chair1);
//						break;
//					case 2:
//						System.out.println("Which reserve, please type in the reserve ID:");
//						in = new Scanner(System.in);
//						eId = in.nextInt();
//						eManager.release(chair1, eId);
//						break;
//					case 3:
//						System.out.println("Which reserve, please type in the reserve ID:");
//						in = new Scanner(System.in);
//						eId = in.nextInt();
//						eManager.cancelreserve(chair1,eId);
//						break;
//					case 4:
//						eManager.use(chair1);
//						break;
//					default:
//						break;
//				}
//			}
//			else if(dataIn == 2)
//			{
//				System.out.println("Hello, court manager, what will you do for chair1(1 for reserve,2 for release,3 for cancel reserve, 4 for use):");
//				in = new Scanner(System.in);
//				dataIn = in.nextInt();
//				switch(dataIn)
//				{
//					case 1:
//						cManager.reserve(court1);
//						break;
//					case 2:
//						System.out.println("Which reserve, please type in the reserve ID:");
//						in = new Scanner(System.in);
//						cId = in.nextInt();
//						cManager.release(court1, cId);
//						break;
//					case 3:
//						System.out.println("Which reserve, please type in the reserve ID:");
//						in = new Scanner(System.in);
//						cId = in.nextInt();
//						cManager.cancelreserve(court1,cId);
//						break;
//					case 4:
//						cManager.use(court1);
//						break;
//					default:
//						break;
//				}
//			}
//			System.out.println("");
//		}
    }
}
